package com.cti.ftpservice.job;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;

import com.cti.ftpservice.service.FtpOnixService;

@Component("ftpOnixDownLoadFileJob")
public class FtpOnixDownLoadFileJob {

	private static Log log = LogFactory.getLog(FtpOnixDownLoadFileJob.class);
	
	@Resource
	private FtpOnixService ftpOnixService;
	public void doWork(){
		log.info("开始下载Onix文件");
		ftpOnixService.downloadFilesFromFtpServices();
		log.info("Onix文件下载完成");
	}
}
